projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc5202
)
ehci-mx5: Fix OC_DIS usage
author
Benoît Thébaudeau
<
[email protected]
>
Tue, 13 Nov 2012 09:56:30 +0000
(09:56 +0000)
committer
Stefano Babic
<
[email protected]
>
Fri, 16 Nov 2012 08:16:44 +0000
(09:16 +0100)
MXC_OTG_PHYCTRL_OC_DIS_BIT disables the oc pin if set, like MXC_H1_OC_DIS_BIT,
not the opposite.
Signed-off-by: Benoît Thébaudeau <
[email protected]
>
Cc: Marek Vasut <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
drivers/usb/host/ehci-mx5.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-mx5.c
b/drivers/usb/host/ehci-mx5.c
index 46973b01bdaca135ff94eeedb1871d6def075525..72cde1a92ad1e090c0621a0dc0246c38cdd7b768 100644
(file)
--- a/
drivers/usb/host/ehci-mx5.c
+++ b/
drivers/usb/host/ehci-mx5.c
@@
-151,11
+151,11
@@
int mxc_set_usbcontrol(int port, unsigned int flags)
v = __raw_readl(usbother_base +
MXC_USB_PHY_CTR_FUNC_OFFSET);
if (flags & MXC_EHCI_POWER_PINS_ENABLED)
- /* OC/USBPWR is not used */
- v |= MXC_OTG_PHYCTRL_OC_DIS_BIT;
- else
/* OC/USBPWR is used */
v &= ~MXC_OTG_PHYCTRL_OC_DIS_BIT;
+ else
+ /* OC/USBPWR is not used */
+ v |= MXC_OTG_PHYCTRL_OC_DIS_BIT;
__raw_writel(v, usbother_base +
MXC_USB_PHY_CTR_FUNC_OFFSET);